[Chapter 3] 3.5 The makemap Program
Author: Bryan Costales & Eric Allman
Date: 1999-02-04T00:04:31Z

#

| Chapter 3 Databases |

## 3.5 The makemap Program

The makemap(1) program (part of sendmail's source) is useful for producing database files. It supports the ndbm(3) form of database, and the hash and btree forms of the Berkeley db(3) database (see §33.2).

>     makemap switches class database

The makemap(1) program reads from its standard input lines of text with the key preceding the value on each line. Output is to database file. The class is selected from `dbm`, `btree`, or `hash`. The switches are:

-d

  Allows duplicate keys. Without this switch, duplicate keys cause warnings to be printed (see §33.2.1.1).

-f

  Prevents (the default) folding of keys from upper- to lowercase (see §33.2.1.2).

-N

  Appends a null byte to all keys (see §33.2.1.3).

-o

  Prevents file from being truncated on open(2). In other words, append to, don't overwrite the file (see §33.2.1.4).

-r

  Replaces (silently) a duplicate key's value with the new value (see §33.2.1.5).

-v

  Sets verbose mode so that you can watch keys and data being added (see §33.2.1.6).

3.4 :include: Files and Mailing Lists |  | 3.6 The K Command